package com.ontheroad.mysql.system.service;

import cn.modoumama.service.base.impl.BaseServiceImpl;
import com.ontheroad.mysql.system.mapper.GeoLogMapper;
import com.ontheroad.system.entity.GeoLogModel;
import com.ontheroad.system.service.GeologService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by kedong on 2017/7/30 0030.
 */
@Service
@Transactional
public class GeologServiceImpl extends BaseServiceImpl<GeoLogModel, Integer> implements GeologService {
    @Autowired
    private GeoLogMapper mapper;

    @Autowired
    public void setMapper(GeoLogMapper mapper) {
        setGenericMapper(mapper);
    }

    @Override
    public void deleteByUserId(Integer userId) {
        mapper.deleteByUserId(userId);
    }
}
